package com.ll.beautymall.bean;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/10/21.
 */
public class HomeProduct implements Serializable{
    /**
     * id : 524811831
     * title : 海青蓝2016秋装新款七分袖通勤立领钉珠气质修身中长款连衣裙6081
     * sub_title : null
     * pic_url : http://img4.tbcdn.cn/tfscom/i3/TB155N4LpXXXXXrXpXXXXXXXXXX_!!0-item_pic.jpg_450x10000.jpg
     * vpid : 536728750390
     * price : 563.00
     * selling_price : 338.00
     * money_symbol : ¥
     * customer_service : null
     * merit : null
     * url : http://item.taobao.com/item.htm?id=536728750390
     * pc_cps_url : http://item.taobao.com/item.htm?id=536728750390
     * mobile_cps_url : http://item.taobao.com/item.htm?id=536728750390
     * start_time : 1476939000
     * end_time : 1477616399
     * sales_volume : 264
     * coupon_title : null
     * coupon_money : null
     * coupon_price : 338.00
     * coupon_pc_url : null
     * coupon_mobile_url : null
     * coupon_start_time : null
     * coupon_end_time : null
     * list_status : 0
     */

    private String id;
    private String title;
    private Object sub_title;
    private String pic_url;
    private String vpid;
    private String price;
    private String selling_price;
    private String money_symbol;
    private Object customer_service;
    private Object merit;
    private String url;
    private String pc_cps_url;
    private String mobile_cps_url;
    private String start_time;
    private String end_time;
    private String sales_volume;
    private Object coupon_title;
    private Object coupon_money;
    private String coupon_price;
    private Object coupon_pc_url;
    private Object coupon_mobile_url;
    private Object coupon_start_time;
    private Object coupon_end_time;
    private int list_status;

    public static HomeProduct objectFromData(String str) {

        return new Gson().fromJson(str, HomeProduct.class);
    }

    public static List<HomeProduct> arrayHomeProductFromData(String str) {

        Type listType = new TypeToken<ArrayList<HomeProduct>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Object getSub_title() {
        return sub_title;
    }

    public void setSub_title(Object sub_title) {
        this.sub_title = sub_title;
    }

    public String getPic_url() {
        return pic_url;
    }

    public void setPic_url(String pic_url) {
        this.pic_url = pic_url;
    }

    public String getVpid() {
        return vpid;
    }

    public void setVpid(String vpid) {
        this.vpid = vpid;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getSelling_price() {
        return selling_price;
    }

    public void setSelling_price(String selling_price) {
        this.selling_price = selling_price;
    }

    public String getMoney_symbol() {
        return money_symbol;
    }

    public void setMoney_symbol(String money_symbol) {
        this.money_symbol = money_symbol;
    }

    public Object getCustomer_service() {
        return customer_service;
    }

    public void setCustomer_service(Object customer_service) {
        this.customer_service = customer_service;
    }

    public Object getMerit() {
        return merit;
    }

    public void setMerit(Object merit) {
        this.merit = merit;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPc_cps_url() {
        return pc_cps_url;
    }

    public void setPc_cps_url(String pc_cps_url) {
        this.pc_cps_url = pc_cps_url;
    }

    public String getMobile_cps_url() {
        return mobile_cps_url;
    }

    public void setMobile_cps_url(String mobile_cps_url) {
        this.mobile_cps_url = mobile_cps_url;
    }

    public String getStart_time() {
        return start_time;
    }

    public void setStart_time(String start_time) {
        this.start_time = start_time;
    }

    public String getEnd_time() {
        return end_time;
    }

    public void setEnd_time(String end_time) {
        this.end_time = end_time;
    }

    public String getSales_volume() {
        return sales_volume;
    }

    public void setSales_volume(String sales_volume) {
        this.sales_volume = sales_volume;
    }

    public Object getCoupon_title() {
        return coupon_title;
    }

    public void setCoupon_title(Object coupon_title) {
        this.coupon_title = coupon_title;
    }

    public Object getCoupon_money() {
        return coupon_money;
    }

    public void setCoupon_money(Object coupon_money) {
        this.coupon_money = coupon_money;
    }

    public String getCoupon_price() {
        return coupon_price;
    }

    public void setCoupon_price(String coupon_price) {
        this.coupon_price = coupon_price;
    }

    public Object getCoupon_pc_url() {
        return coupon_pc_url;
    }

    public void setCoupon_pc_url(Object coupon_pc_url) {
        this.coupon_pc_url = coupon_pc_url;
    }

    public Object getCoupon_mobile_url() {
        return coupon_mobile_url;
    }

    public void setCoupon_mobile_url(Object coupon_mobile_url) {
        this.coupon_mobile_url = coupon_mobile_url;
    }

    public Object getCoupon_start_time() {
        return coupon_start_time;
    }

    public void setCoupon_start_time(Object coupon_start_time) {
        this.coupon_start_time = coupon_start_time;
    }

    public Object getCoupon_end_time() {
        return coupon_end_time;
    }

    public void setCoupon_end_time(Object coupon_end_time) {
        this.coupon_end_time = coupon_end_time;
    }

    public int getList_status() {
        return list_status;
    }

    public void setList_status(int list_status) {
        this.list_status = list_status;
    }
}
